package com.hdoit.ares.web.app.modelconfig;
import com.hdoit.ares.web.app.providers.AppRemindMessageStatusProvider;
import com.hdoit.ares.web.app.providers.AppRemindMessageTypeProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      lvsi
 * @email       
 * @createtime  2018年03月28日 17:32:44
 * @comment
 */
public class AppRemindMessageConfig extends ModelMetadataAttributeConfiguration{
    public AppRemindMessageConfig(){
        this.setProperty("custId")
            .hasAttribute(new DisplayNameAttribute("消息接收人"));

        this.setProperty("content")
            .hasAttribute(new DisplayNameAttribute("消息内容"));

        this.setProperty("messageType")
            .hasAttribute(new DisplayNameAttribute("消息类型"))
            .hasAttribute(new DropDownListAttribute(new AppRemindMessageTypeProvider()));

        this.setProperty("messageStatus")
            .hasAttribute(new DisplayNameAttribute("消息状态"))
            .hasAttribute(new DropDownListAttribute(new AppRemindMessageStatusProvider()));

        this.setProperty("createTime")
            .hasAttribute(new DisplayNameAttribute("创建时间"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("messageUrl")
            .hasAttribute(new DisplayNameAttribute("消息链接"));

    }
}